Socket
Socket
Sign inDemoInstall

@jupyterlab/coreutils

Package Overview
Dependencies
7
Maintainers
10
Versions
344
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/coreutils


Version published
Maintainers
10
Created

Package description

What is @jupyterlab/coreutils?

@jupyterlab/coreutils is a utility library for JupyterLab that provides a set of core utilities for working with JupyterLab extensions and applications. It includes functions for handling settings, time, URLs, and more.

What are @jupyterlab/coreutils's main functionalities?

Settings

This feature allows you to manage settings for JupyterLab extensions. The code sample demonstrates how to load settings for a specific plugin.

const { Settings } = require('@jupyterlab/coreutils');
const settings = new Settings({
  serverSettings: { baseUrl: 'http://localhost:8888' },
  pluginId: 'my-plugin'
});
settings.load().then(data => {
  console.log(data);
});

Time

This feature provides utilities for handling and formatting time. The code sample shows how to format the current date and time.

const { Time } = require('@jupyterlab/coreutils');
const timestamp = Time.format(new Date(), 'YYYY-MM-DD HH:mm:ss');
console.log(timestamp);

URLs

This feature includes utilities for working with URLs. The code sample demonstrates how to join parts of a URL into a full URL.

const { URLExt } = require('@jupyterlab/coreutils');
const fullUrl = URLExt.join('http://localhost:8888', 'api', 'contents');
console.log(fullUrl);

Other packages similar to @jupyterlab/coreutils

Readme

Source

@jupyterlab/coreutils

A JupyterLab package which provides utility functions that are widely used across many of the @jupyterlab packages. This includes (among other things) functions for manipulating paths, urls, and the notebook format.

This package is intended for use within both Node.js and browser environments.

FAQs

Last updated on 19 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc